﻿
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
using System.Linq.Expressions;
using System.Web.Configuration;

namespace Himall.Entity
{
    /// <summary>
    /// 数据库初始化
    /// </summary>
    internal sealed class DbConfiguration : DbMigrationsConfiguration<Entities>
    {
        private readonly DateTime _now = new DateTime(2015, 5, 1, 23, 59, 59);
     

        public DbConfiguration()
        {
            AutomaticMigrationsEnabled = true;//启用自动迁移
            AutomaticMigrationDataLossAllowed = true;//是否允许接受数据丢失的情况，false=不允许，会抛异常；true=允许，有可能数据会丢失
            //SetSqlGenerator("MySql.Data.MySqlClient", new MySql.Data.Entity.MySqlMigrationSqlGenerator());    // This will add our MySQLClient as SQL Generator  

        }

        protected override void Seed(Entities context)
        {          
            
        }
    }
}
